package jianzhiOffer;

public class num53_2 {
    public int missingNumber(int[] nums) {
        if(nums[0] == 1) return 0;
        for(int i = 0;i < nums.length;i ++) {
            if(nums[i] != i) return i;
        }
        return nums.length;
    }
}
